package com.frame.sulent.datasource.common;

/**
 * 公共常量
 */
public class CommonConstant {

    public static class FieldConstraint{
        public static final String PRIMARY_KEY = "主键";
        public static final String FOREIGN_KEY = "外键";
        public static final String NOT_NULL = "不允许为空";
        public static final String NULL = "允许为空";
        public static final String UNIQUE = "唯一";
        public static final String CHECK = "检查";
        public static final String DEFAULT = "默认值";
    }

    public static class LogicalDataType{
        public static final Integer OTHER = 0;
        public static final Integer NUMERIC = 1;
        public static final Integer CHARACTER_STR = 2;
        public static final Integer DATE_TIME = 3;
        public static final Integer BOOLEAN = 4;
        public static final Integer BINARY = 5;
    }

    public static class FieldSource{
        public static final Integer CUSTOM = 1;
        public static final Integer DATABASE = 2;
        public static final Integer IMPORT = 3;
    }

    public static class DataStoreType{
        public static final Integer BASE = 1;
        public static final Integer BUSINESS = 2;
    }

    public static class ModelStatus{
        public static final Integer DRAFT = 0;
        public static final Integer ONLINE = 1;
        public static final Integer OFFLINE = 2;
    }

    //未删除
    public static final int DEL_FLAG_0 = 0;

    //已删除
    public static final int DEL_FLAG_1 = 1;

    public static final String DONE = "1";
    public static final String NOTDONE = "0";
    public static final String FAIL = "FAIL";

    // 是否弃用 0：在用，1：弃用"
    public static final String ENABLE = "0";
    public static final String NOTENABLE = "1";

    public static final String INVALID_CAPTION = "[已注销]";

}
